package com.hadoop.project;

import io.swagger.models.Swagger;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * SpringBoot启动类
 */
@Slf4j
@EnableAsync
@EnableScheduling
@EnableTransactionManagement
@MapperScan(basePackages = {"com.hadoop.project.mvc.mappers"})
@SpringBootApplication(scanBasePackages = {"com.hadoop.project"})
public class HadoopProjectRunApplication {
    public static void main(String[] args) {
        /*******************************************************************************
         ************* 启动前 确保你的 mysql 数据库 有 hadoopcmp 这张数据库！ *************
         ************* 启动后 打开 http://localhost:8888/demo/loadDataList  *************
         ************* 特别提示 项目配置了 Swagger 文档！！！                *************
         ************* 如何打开Swagger文档？http://localhost:8888/doc.html  *************
         *******************************************************************************/
        SpringApplication.run(HadoopProjectRunApplication.class, args);
    }
}
